package com.etc.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.etc.dao.JobMapper;
import com.etc.entity.Job;
import com.etc.service.JobService;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;

/**
 * 
 * @ClassName: JobServiceImpl 
 * @Description: JobServiceImpl
 * @author knowno  
 * @date 2022年4月7日 上午10:57:41 
 *
 */
@Service
public class JobServiceImpl implements JobService {
	
	//注入mapper
	@Autowired
	private JobMapper mapper;

	@Override
	public Page<Job> getByPage(int page, int limit, String keywords) {
		//执行分页操作别忘记了
		PageHelper.startPage(page, limit);
		return mapper.getByLike("%"+keywords+"%");
	}

}
